package com.singzi.designPattern.factoryMethods;

public interface IFactory {
    LeiFeng createLeiFeng();
}

class UnderGraduateFactory implements IFactory{
    @Override
    public LeiFeng createLeiFeng() {
        return new Undergraduate();
    }
}
class VolunteerFactory implements IFactory{

    @Override
    public LeiFeng createLeiFeng() {
        return new Volunteer();
    }
}